﻿using System.Collections.Generic;

namespace User.Api.Helpers.WeixinPayV3.WxResult
{
    public class DoRefundQueryResult
    {
        /// <summary>
        /// 成功 就为 0,否则失败
        /// </summary>
        public string ResultCode { get; set; }
        /// <summary>
        /// 失败信息
        /// </summary>
        public string ResultMsg { get; set; }
        /// <summary>
        /// 商户号
        /// </summary>
        public string Partner { get; set; }
        /// <summary>
        /// 第三方订单号
        /// </summary>
        public string OutTradeNo { get; set; }
        /// <summary>
        /// 财付通交易号
        /// </summary>
        public string TransactionId { get; set; }
        /// <summary>
        /// 退款记录数 
        /// </summary>
        public string RefundCount { get; set; }

        public List<RefundOrder> RefundOrders { get; set; }
    }

    public class RefundOrder
    {
        /// <summary>
        /// 商户退款单号
        /// </summary>
        public string OutRefundNo { get; set; }
        /// <summary>
        /// 财付通退款单号
        /// </summary>
        public string RefundId { get; set; }
        /// <summary>
        /// 退款渠道
        /// </summary>
        public string RefundChannel { get; set; }
        /// <summary>
        /// 退款金额
        /// </summary>
        public string RefundFee { get; set; }
        /// <summary>
        /// 退款状态
        /// 4，10：退款成功
        /// 3，5，6：退款失败 
        /// 8，9，11：退款处理中
        /// 1,2未确定
        /// 7转入代发
        /// </summary>
        public string RefundState { get; set; }
        /// <summary>
        /// 收款人账号
        /// </summary>
        public string RecvUserId { get; set; }
        /// <summary>
        /// 收款人姓名
        /// </summary>
        public string RecvUserName { get; set; }
    }
}
